import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import{ ViewRoutingModule } from './view-routing.module';
import { FormsModule } from '@angular/forms';
 import { EntryListComponent } from '../../content/entry-list/entry-list.component';

import { FlowInfoComponent } from '../../modal/flow-info/flow-info.component';
import { EntryHistoryComponent } from '../../modal/entry-history/entry-history.component';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../../../assets/angularx-flatpickr';
import { NewChangeInfoComponent } from '../../modal/new-change-info/new-change-info.component';
import { ContrastInfoComponent } from '../../modal/contrast-info/contrast-info.component';

import { ReadingNotesComponent } from '../../modal/reading-notes/reading-notes.component';

import { HistoryChangeComponent } from '../../modal/history-change/history-change.component';

import { ViewSearchComponent } from '../../modal/view-search/view-search.component';

import { ViewPageComponent } from '../../content/view-page/view-page.component';

import { TablePageComponent } from '../../table/table-page/table-page.component';
export function flatpickrFactory() {
  return flatpickr;
}
@NgModule({
  imports: [
    CommonModule,
    ViewRoutingModule,
    FormsModule,
    AppPaginationModule,
    MultiSelectModule,
    CustomFormsModule,
    FileUploadModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [

    EntryListComponent,
    FlowInfoComponent,
    EntryHistoryComponent,
    NewChangeInfoComponent,
    ContrastInfoComponent,
    
    ReadingNotesComponent,
    
    HistoryChangeComponent,
   
    ViewSearchComponent,
    ViewPageComponent,
   
    TablePageComponent],
  entryComponents: [
    EntryListComponent,
    FlowInfoComponent,
    EntryHistoryComponent,
    NewChangeInfoComponent,
    ContrastInfoComponent,
   
    ReadingNotesComponent,
  
    HistoryChangeComponent,
   
    ViewSearchComponent,
    ViewPageComponent,

    TablePageComponent]
})
export class ViewRoutingModule { }
